package com.axonactive;

import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;

import com.axonactive.dao.BookDAO;
import com.axonactive.entities.Book;

@Stateless
public class BookBeanService {
	@Inject
	BookDAO bookDAO;
	
	public List<Book> getBooks(){
		return bookDAO.getBooks();
	}
	
	public void saveBook(Book book){
		bookDAO.saveBook(book);
	}
}
